package com.zuokun.protol;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zuokun.annotation.Protocol;
import com.zuokun.enumeration.SendType;
import com.zuokun.vo.PlayerInfo;
import io.netty.channel.ChannelHandlerContext;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@Protocol
@Component
@NoArgsConstructor
public class MsgBase {
    protected String protoName = this.getClass().getSimpleName();

    @JsonIgnore
    protected SendType sendType = SendType.Unicast;

    protected String message;

    @JsonIgnore
    protected ChannelHandlerContext ctx;

    @JsonIgnore
    protected PlayerInfo playerInfo;

    protected Integer id;
}
